﻿using System;
using System.Collections.Generic;
using System.Text;
using YouHP.Utility;
using YouHP.BLL;
using System.Web;
using YouHP.Model;

namespace YouHP.Pages.User
{
    public class CommentConversation : YouHP.Pages.User.UserBasePage
    {

        protected override void ShowPage()
        {
            base.ShowPage();
            if (ErrorCount > 0) return;
            HandleCommon();
            if (ErrorCount > 0) return;
            if (IsPost) HandlePost();
            else
                HandleGet();
        }

        private void HandlePost()
        {
        }
        protected CommentInfo CommentData;

        private void HandleCommon()
        {
            this.AddLocation("留言会话", "/User/CommentConversation.aspx");
            this.SetTitle(this.UserData.UserName + " 的留言会话");

            this.AddScriptSrc("/support/Alpha/Js/mootools.js");

            int commentId = RequestTools.GetQueryInt("parentId",0);

            CommentData = CommentBLL.Instance.GetCommentInfo(commentId);

            ////如果是本人登录此页面，将留言设置为已读
            //if (UserData.Id == ProfileData.Id)
            //{
            //    CommentBLL.Instance.UpdateCommentState(ProfileData.Id, 1);
            //}

        }


        protected void HandleGet()
        {


        }


    }
}
